package cn.enilu.guns.bean.entity.door;


import lombok.Data;
import cn.enilu.guns.bean.entity.BaseEntity;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;

@Entity(name="t_event_record")
@Table(appliesTo = "t_event_record",comment = "事件记录表")
@Data
@EntityListeners(AuditingEntityListener.class)
public class EventRecord extends BaseEntity {

	/**
	 * 
	 */
	@Column(columnDefinition = " INT(10) COMMENT ''")
	private Integer version;

	/**
	 * 卡号
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '卡号'")
	private Long cardNo;

	/**
	 * 人员主键
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '人员主键'")
	private Long pin;

	/**
	 * 
	 */
	@Column(columnDefinition = " VARCHAR(255) COMMENT ''")
	private String verified;

	/**
	 * 门ID
	 */
	@Column(columnDefinition = " INT(11) COMMENT '门ID'")
	private Integer doorId;

	/**
	 * 事件选项EventType
	 */
	@Column(columnDefinition = " VARCHAR(255) COMMENT '事件选项EventType'")
	private String eventType;

	/**
	 * 进出状态
	 */
	@Column(columnDefinition = " VARCHAR(255) COMMENT '进出状态'")
	private String inoutState;

	/**
	 * 刷卡时间
	 */
	@Column(columnDefinition = " DATETIME COMMENT '刷卡时间'")
	private java.util.Date timeSecond;

	/**
	 * 
	 */
	@Column(columnDefinition = " INT(10) COMMENT ''")
	private Integer inoutfunIndex;

	/**
	 * 
	 */
	@Column(columnDefinition = " INT(10) COMMENT ''")
	private Integer siteCode;

	/**
	 * 门所属设备ID
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '门所属设备ID'")
	private Long equipmentId;

	/**
	 * 区域名称
	 */
	@Column(columnDefinition = " VARCHAR(255) COMMENT '区域名称'")
	private String areaName;

	/**
	 * 验证类型
	 */
	@Column(columnDefinition = " VARCHAR(255) COMMENT '验证类型'")
	private String verifiedName;


}
